package com.sixteen.ordering_system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**
 * <p>
 * 
 * </p>
 *
 * @author sixteen
 * @since 2022-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysUser{

    private static final long serialVersionUID = 1L;

    /**
     * 用户id
     */
    @TableId(value = "sys_user_id", type = IdType.AUTO)
    private Integer sysUserId;

    /**
     * 用户名及电话号码
     */
    private String telephoneNumber;

    /**
     * 密码
     */
    private String password;

    /**
     * 权限0为用户，1为管理员
     */
    private String role;

    /**
     * 备注
     */
    private String remark;

    @Override
    public String toString() {
        return "SysUser{" +
                "telephoneNumber='" + telephoneNumber + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public String getTelephoneNumber() {
        return telephoneNumber;
    }

    public void setTelephoneNumber(String telephoneNumber) {
        this.telephoneNumber = telephoneNumber;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getSysUserId() {
        return sysUserId;
    }

    public void setSysUserId(Integer sysUserId) {
        this.sysUserId = sysUserId;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
